<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <input type=" txet" oninput="newhandleInput()">
</body>
</html>
<script>
    function handleInput() {
        console.log('发起请求');
    }
    function throttle(func,time) {
        var timerid=null
        return function () {
            if (!timerid) {
                timerid=setTimeout(()=>{
                    func()
                    clearInterval(timerid)
                    timerid=null
                },time)
            }
        }
    }
    var newhandleInput=throttle(handleInput,100)
</script>